home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / PeopleDemo_oracle / Department.h next >
Text File  |  1994-06-23  |  875b  |  43 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import <eointerface/eointerface.h>
  4. #import <eoaccess/eoaccess.h>
  5.  
  6. @interface Department:Object  
  7. {
  8.     id    DepartmentName;
  9.     id    DeptId;
  10.     id    LocationId;
  11.     id  FacilityLocation;
  12.     id    toEmployee;
  13.     
  14.     id  averageSalary;   
  15.                  /* Average salary earned by employees in the department.  
  16.                    * This attribute is not defined in the Department         
  17.                   * table.
  18.                   */
  19.     
  20.     
  21.     int        avgSalaries;
  22.     
  23. }
  24.  
  25. - init;
  26. - (void) dealloc;
  27. - free;
  28.  
  29. /* Useful debugging/tracing methods */
  30.  
  31. - (BOOL)respondsTo:(SEL)sel;
  32.  
  33. /* Methods to read/write data from database to EO */
  34.  
  35. - (NSNumber *)averageSalary;
  36. - (NSArray *)toEmployee;
  37.  
  38. - (void) setAverageSalary:(NSNumber *)aSalary;
  39. - (void) setDeptId:(NSNumber *)newId;
  40. - (void) setDepartmentName:(NSString *)newName;
  41. - (void) setLocationId:(NSNumber *)newLocation;
  42. - (void) setToEmployee:(NSArray *)aRelation;
  43. @end